package io.github.jesse205.dragdrop.pro.database

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query

@Dao
interface DragDropDao {
    @Query("SELECT * FROM dragdropitem")
    fun getAll(): List<DragDropItem>

    @Query("SELECT * FROM dragdropitem WHERE _ID IN (:itemId)")
    fun loadAllByIds(itemId: IntArray): List<DragDropItem>

    @Insert
    fun insertAll(vararg users: DragDropItem)

    @Delete
    fun delete(user: DragDropItem)
}